package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;
    @Value("1")
    private int num;
    @Value("2")
    private String varchar;



    public void save() {
        System.out.println("save is  running...."+num+varchar);
        userDao.save();
    }
}
